package com.repository;

import com.entity.BusinessUtilityBillRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface BusinessUtilityRecordRepository extends JpaRepository<BusinessUtilityBillRecord, Integer> {
    List<BusinessUtilityBillRecord> findAllByProjectNameAndBillMonth(String projectName, Date billMonth);
    List<BusinessUtilityBillRecord> findAllByUtilityBillId(Integer utilityBillId);
    void deleteAllByUtilityBillId(Integer utilityBillId);

}